<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<title>首页</title>
	<link rel="stylesheet" href="/Public/css/bootstrap.min.css" />
	<link rel="stylesheet" href="/Public/css/common.css" />
	<link rel="stylesheet" href="/Public/admin/admin.css" />
	<!-- style start -->
	
	<style type="text/css"> 
	</style>

</head>
<body>
<!-- header start -->
<nav class="navbar navbar-inverse  ">
	<div class="container">
		<div class="navbar-header">
			<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
				<span class="sr-only">Toggle navigation</span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
			</button>
			<a class="navbar-brand" href="#">JiyCms</a>
		</div>
		<div id="navbar" class="navbar-collapse collapse">
			<ul class="nav navbar-nav">
				<li class="active"><a href="#">起始页</a></li>
				<li><a href="#about">系统</a></li>
				<li><a href="#contact">内容管理</a></li>
				<li><a href="#contact">统计</a></li>
			</ul>
		</div><!--/.nav-collapse -->
	</div>
</nav>
<!-- end header -->

<!-- content start -->
	<div class="content">
		<div class="container">
			<!-- 左边菜单 -->
			<div class="col-sm-3 col-md-2 sidebar">
				 <div class="nav-bar">
	 <a href="/admin.php/Index" class="nav-item">起始页</a>
	 <a href="<?php echo U('System/index');?>" class="nav-item">系统管理</a>
	 <a href="<?php echo U('Admin/index');?>" class="nav-item">管理员</a>
	 <a href="<?php echo U('Admin/role');?>" class="nav-item">管理员角色</a>
	 <a href="<?php echo U('Contents/index');?>" class="nav-item">文章列表</a>
	 <a href="<?php echo U('Contents/classify');?>" class="nav-item">文章分类</a>
	 <a href="<?php echo U('Notice/index');?>" class="nav-item">公告管理</a>
	 <a href="<?php echo U('Product/index');?>" class="nav-item">产品管理</a>
	 <a href="<?php echo U('Menu/index');?>" class="nav-item">导航管理</a>
	 <a href="<?php echo U('Banner/index');?>" class="nav-item">广告管理</a>
	 <a href="<?php echo U('Member/index');?>" class="nav-item">会员管理</a>
	 <a href="<?php echo U('Single/index');?>" class="nav-item">单页管理</a>
 </div>
			</div>
			<!--右边内容-->
			<div class="col-md-9">
				 
	
	<ol class="breadcrumb">
	  <li><a href="/admin.php/Contents/classify">文章分类</a></li> 
	  <li class="active"><?php echo ($title); ?></li>
	</ol>  
	<form action="/admin.php/Contents/save_classify" method="post" class="form-horizontal">
			<input type="hidden" name="classify_id" value="<?php echo ($info["classify_id"]); ?>" />
			<div class="form-group">
				<label for="inputtext" class="col-sm-2 control-label">名称</label>
			    <div class="col-sm-10">
			      <input type="text" class="form-control" name="classify_name" value="<?php echo ($info["classify_name"]); ?>" id="inputtext" placeholder="名称">
			    </div>
			</div>
			<div class="form-group">
				<label for="inputtext" class="col-sm-2 control-label">状态</label>
			    <div class="col-sm-10">
			    	<label for="radio" class="radio"><input type="radio" id="radio" name="status" <?php echo ($info['status']?'checked':''); ?> value="1" id="" />开启</label>
			    	<label for="radio1" class="radio"><input type="radio"  id="radio1" name="status" <?php echo ($info['status']?'':'checked'); ?> value="0" id="" />禁用</label>
			    </div>
			</div>
			<div class="form-group">
				<label for="inputtext" class="col-sm-2 control-label">描述</label>
			    <div class="col-sm-10">
			    	<textarea name="desc"  class="form-control" id="" cols="30" placeholder="描述" rows="4"><?php echo ($info['desc']); ?></textarea> 
			    </div>
			</div>
			<div class="form-group">
				<label for="inputtext" class="col-sm-2 control-label">上级分类</label>
			    <div class="col-sm-8">
			    	<select name="pid" id="" class="form-control">
			    		<?php if(is_array($class)): foreach($class as $key=>$item): ?><option value="<?php echo ($item["classify_id"]); ?>"><?php echo ($item["classify_name"]); ?></option><?php endforeach; endif; ?>
			    	</select>
			    </div>
			    <div class="col-sm-2"><a href="/admin.php/Contents/add_classify" class="btn btn-info">添加分类</a></div>
			</div> 
			<div class="form-group">
				<div class="col-sm-offset-2">
					<button class="btn btn-info">保存</button>
					<a href="javascript:history.back()" class="btn btn-default">上页</a>
				</div>
			</div>
		</form>

			</div>
		</div>
	</div>
<!-- end content -->

<!-- footer start -->

	<div class="footer">
		<div class="container">底部信息</div>
	</div>
<!-- end footer -->

<!-- script start -->
<script src="/Public/js/jquery-1.11.3.min.js"></script>	
<script src="/Public/js/bootstrap.min.js"></script>	


</body>
</html>